begintalkscript;
variables;

begintalknode 1;
state = -1;
nextstate = 1;
condition = 1;
question = "Jasmine";
text1 = "A young lady is keeping the inn. It looks like she got the job recently.";
text2 = "She seems happy. _Hello, and welcome to the Azure Inn. I am Jasmine. Is there anything I can help with?_";

begintalknode 2;
state = 1;
nextstate = 2;
condition = 1;
question = "Tell me about Azure Isle.";
text1 = "_Well, this is the fortress of Alexandra. We are safe inside the walls if we would be besieged, and there is an army of fine empire soldiers here._";
text2 = "_Not many dare attack here._";

begintalknode 3;
state = 2;
nextstate = 3;
condition = 1;
question = "This fort looks pretty new. Have you ever been besieged?";
text1 = "_We have never had any real trouble yet, but yes, we have been besiege before. It was a few weeks ago._";
text2 = "_They were bandits. They live in remote areas of the Delta. They must have looked for something from here._";
text3 = "_When we sent out nobody and just peppered them with flame arrows they left next day. The siege is also why I became stranded here._";

begintalknode 4;
state = 3;
nextstate = 4;
condition = 1;
question = "What did the siege have to do with your job here?";
text1 = "She loses her happiness. _II used to live on a farm near Alexandra with my mother. My father ran this inn then._";
text2 = "_My mother heard about the siege from a spotter and, though I forbid her to, came here. Both mom and dad got killed later in the siege._";
text3 = "_I could not run a farm by myself, so I sold it and came here instead._";

begintalknode 5;
state = 4;
nextstate = 5;
condition = get_flag(112, 6) == 0;
question = "I'm sorry. Do you have any idea where the bandits are now?";
text1 = "_They fled to the northwest. But I did not see them flee the Delta. They must have set up a hidden camp somewhere. Oh, I will curse those brigands!_";

begintalknode 6;
state = 5;
nextstate = -1;
condition = 1;
question = "I will avenge your parents!";
text1 = "_Wi-will you really? Oh, (snif) you are the greatest adventurers ever!_";
action = END_TALK;
code = set_flag(112, 6, 1);
       toggle_quest(7, 1);
break;

begintalknode 7;
state = 1;
nextstate = 6;
condition = 1;
question = "Can I get a night room and board?";
text1 = "_Sure. It costs 24 coins._";

begintalknode 8;
state = 6;
nextstate = 7;
condition = 1;
question = "All right! (Pay 24 coins)";
action = INN 24 15 23;
text1 = "_I hope you enjoy._";
text3 = "_No. You don't have that much money._";
text5 = "_Please leave your horses in the stables to the northeast._";

begintalknode 9;
state = 1;
nextstate = 8;
condition = 1;
question = "What do you serve?";
text1 = "_I have got something that you wont get elsewhere in the Delta. It's whiskey. 18 coins one round._";
text2 = "_You can also order our special meal with roast fish, chips, salad and beer. It costs 26 coins._";

begintalknode 10;
state = 8;
nextstate = 8;
condition = 1;
question = "One round of whiskey, please. (Pay 18 coins)";
text1 = "_Here you are._ The whiskey is one of the strongest alchololic drinks you've ever drunk. You get quite unsober.";
code = change_coins(-18);
       set_char_status(1000, 28, 30, 0, 1);
break;

begintalknode 11;
state = 8;
nextstate = 8;
condition = 1;
question = "One meal, please. (Pay 26 coins)";
text1 = "_Excuse me. It will take a while._ She walks away. After 15 minutes she returns with plates full of food. _Here you are!_ The food is delicious. The beer makes you get drunk.";
code = change_coins(-26);
       set_char_status(1000, 28, 10, 0, 1);
break;

begintalknode 12;
state = 1;
nextstate = 1;
condition = get_flag(200, 1) == 1;
question = "I fought the bandits. Now they're dead.";
text1 = "_Oh, oh you d-did_ She begins to cry. _You made my life so much easier. Did I tell you that the bandits were haunting my dreams at nighttime?_";
text2 = "_You're so brave!_ She gives you a big hug. _Thank you!_";
code = set_flag(200, 1, 2);
       toggle_quest(7, 0);
break;


begintalknode 15;
state = -1;
nextstate = -1;
condition = 1;
question = "Commander Jones";
text1 = "The commander of these bladesmen is a huge warrior wielding a pike. He is quite old, but still warworthy.";
text2 = "_Hello! I am Commander Jones, leader of these warriors and captain of the Azure Isle fort._";
text3 = "_I'm sorry, but I haven't time to chat. We are training._";
action = END_TALK;






begintalknode 20;
state = -1;
nextstate = 10;
condition = 1;
question = "Otto";
text1 = "The man you met earlier seems to have arrived already. He says:";
text2 = "_I'm sorry that I didn't introduce myself. I am Otto. And now I tell you why we're here._";

begintalknode 21;
state = 10;
nextstate = 11;
condition = 1;
question = "Then why are we here?";
text1 = "_Look, I have a trouble. And you're the only one who could even possibly fix it. I'd better tell you the whole story._";
text2 = "_Well, I have an adventurer spirit. I am good at kicking others butts, litterally. I love music. But then, I made my critical mistake._";

begintalknode 22;
state = 11;
nextstate = 11;
condition = 1;
question = "Speaking of music, what is that instrument you have with you?";
text1 = "_Yeah, this. It is a violoncello. With skills you can create a soft, elegant sound of music with it. I got this one from my grandfather._";

begintalknode 23;
state = 11;
nextstate = 12;
condition = 1;
question = "What mistake?";
text1 = "_You know, I have nothing before it that the Empire kills every creature other than human that has a little more intelligence that they are used to._";
text2 = "_Then, I accidentally had something to do with the Red Dragon, rebel cult which had the same thoughts as I._";
text3 = "_But that thought had completely forsaken them, and sometimes they even attacked ordinary hunters. But that went too far._";
text4 = "_I stopped hanging out with them, and then I made my next critical mistake. I went back to the Empire lands. The Empire had caught one of the rebels and learnt about me._";
text5 = "_Thus, I have no place to go, no people to trust. All company that I have nowadays is the Dryads. Not very intelligent when discussing things, but they are very nice._";

begintalknode 24;
state = 12;
nextstate = 13;
condition = 1;
question = "And how can I help?";
text1 = "_Let me travel with you. Then, my camouflage gets ten times more effective and I won't be caught._";
text2 = "_And then you could drop me off if you'd find an escape tunnel away from the Empire. Of course I would pay_";

begintalknode 25;
state = 13;
nextstate = -1;
condition = 1;
question = "Okay, you can travel with me.";
text1 = "_Great! Finally someone who doesn't want to kill me! Okay, let's get going._";
action = END_TALK;
code = add_char_to_party(32);
       erase_char(32);
       set_flag(112, 25, 1); 
break;